package com.wodsy.phoenix.dataservice.userc.service;


import com.wodsy.phoenix.dataobject.base.PhoenixResponseWrapper;
import com.wodsy.phoenix.dataobject.userc.model.MobileCaptcha;
import com.wodsy.phoenix.dataobject.userc.model.UserBasic;
import com.wodsy.phoenix.dataobject.userc.vo.UserBasic4EmailRegister;
import com.wodsy.phoenix.dataobject.userc.vo.UserBasic4Login;
import com.wodsy.phoenix.dataobject.userc.vo.UserBasic4PhoneRegister;
import com.wodsy.phoenix.dataservice.base.BaseService;

public interface UserManagementService extends BaseService<UserBasic, Integer> {


	/**
	 * 用户注册(邮箱)
 	 * @param userBasic4EmailRegister
	 */
	public PhoenixResponseWrapper<UserBasic4EmailRegister> registerByEmail(UserBasic4EmailRegister userBasic4EmailRegister);
	/**
	 * 用户注册(手机)
	 * @param userBasic4PhoneRegister
	 */
	public PhoenixResponseWrapper<UserBasic4EmailRegister> registerByMobile(UserBasic4PhoneRegister userBasic4PhoneRegister);
	/**
	 * 登录查找
	 * @param userBasic4Login 用户信息
	 * @return
	 */
	public PhoenixResponseWrapper<UserBasic>  login(UserBasic4Login userBasic4Login);

	/**
	 * 通过邮箱验证激活用户
	 */
	public PhoenixResponseWrapper<UserBasic> activiteByEmail(String email);
	/**
	 * 修改密码
	 * @param user 用户对象
	 */
	public void changePass(UserBasic user) ;
	
	/**
	 * 校验密码
	 * @param user 用户对象
	 */
	public boolean checkPass(String pass, UserBasic user);
	
	/**
	 * 删除账户
	 * @param userids 用户id字符串，以逗号分隔
	 */
	public void delUser(String userids) ;

	/**
	 *发送验证码
	 * @param mobile
	 * @return
	 */
	public PhoenixResponseWrapper<MobileCaptcha> sendMobileMsg(long mobile);
	

}
